From the functionality perspective it works perfectly fine. However, single click on an item in the trash bin immediately restores it on the same spot. Especially the top item goes behind the window option. May be one click should be disabled and only drag and drop option would be allowed? It just a matter of UX issue.
Forgot to attach screen recording..
We need to review what control we have here as this UI is inherited from Google Blockly