This happens only when using XBAP Full Trust Application. Initially when floating a pane with mouse, the ToolWindow is misplaced. If the user release the dragged window and click the header again, works fine.