This is the simplest example of drag and drop.

Drag the boxes below and drop them into the dustbin. Note that it has a neutral, an active and a hovered state. The dragged item itself changes opacity while dragged.

Drag a box here
Glass
Banana
Paper