You can add:
viewConfig: {
listeners: {
beforedrop: function (node, data, dropRec, dropPosition, eOpts) {
...