Making a draggable object with scripts?

Hi all, I’m very new to Rive and I’m stumped by something that seems pretty simple. Basically, I have an object that a user should be able to click and drag around the screen, and then I need it to return to its original spot if the user doesn’t drag it somewhere specific. What I have right now is a component that has an image and a Node script on it, but I’m confused as to how I can then get and update the coordinates based on the mouse event. If anyone has any tips I would greatly appreciate it. Thanks!