Fix dragging behavior and custom onDrag handlers support

[#58078722]