Detects where the mouse is clicked, then it either passes to an element, or tests whether the close button, an extra button was clicked, also tests for the header, which creates a drag event for moving the window.
See Implementation
Detects where the mouse is clicked, then it either passes to an element, or tests whether the close button, an extra button was clicked, also tests for the header, which creates a drag event for moving the window.