This class handles the dragging of a window.
The window to be dragged.
This function registers the window for dragging.