When tearing a tab out of a window, the torn tab form is initialized before the tab is removed from its parent window.
When a tab is torn, its event handler subscriptions are cleared.
The OnTabClicked event now includes a flag indicating if the click event corresponded to a drag operation.