Drag and throw

Hello everyone!
I am looking for examples on drag and throw… that i can apply to my code.
I am having a very difficult time to implement it on my own.

Regards,
Leo.