This project illustrates a reliable way to implement drag and drop from the plugin window to the Figma canvas.
Please check the API docs on drop event and triggering drop events from the UI.
The code in this repo is now obsolete. It is recommended that you use the new API to implement drag and drop going forward.