Stack your layers based on your needs. Set up the before and after states of your draggable layer.
Select the draggable layer, go to prototype mode. Drag a noodle from it to the after state frame (the main frame, not the layers inside it). Set the trigger to "on drag", and animation to "smart animate".
On the after state frame, select the draggable layer, draw a noodle back to the before state frame, set the trigger to "On drag" and make sure the animation is "smart animate" as well.
Test the prototype from the before state frame, try dragging the draggable layer, and see if that's the intended result. Tweak the animation timing, curves, and layer properties like opacity, background color, etc, based on your needs.