If right mouse button is pressed while dragging a float tool window, the default context menu appears. If after that move away and do not select a menu item, the tool window cannot be released from the pointer and hence cannot dock or leave it floating.