How do you make this drag and throw thing?

how do you make this?