Improve plugins.dragNodes

Prevent a node to be added multiple times on the stack, which can generate bugs for third-party plugins.

Adds drag events for integration with third-party tools.