This example shows how to apply custom logic to valid dropping on nodes
The js is not minified so it is readable. See custom-drop-logic.js.