Re-implemented titlebar dragging.