Detect global drag status
<div v-dragging="{ enter, leave }">
Imagine you'd like to build a drag-n-drop file upload, and indicate the drop target to users when they drag a file onto the window. This requires adding an event listener to the window or body, and deal with all kinds of drag and drop API shenanigans.
This directive makes it really easy to handle global drag and drop detection, even for files, which is usually restricted due to security problems.
All credits for the method go to @mpenner, who wrote the code for React originally.