How to detect when user has stopped stretching a layer inside Figma file?

No.

Use the on documentchange event: How to detect when node is resized? - #2 by Gleb