I have an application that uses multiple DocumentWindows and ToolWindows. When I try to resize a floating DocumentWindow, I sometimes move my mouse cursor over a ToolWindow, whose inner control has mouse events to perform a drag and drop. As a result, I inadvertinely trigger a drag and drop during the DocumentWindow resize.
I believe I can avoid this problem by capturing the mouse when resizing DocumentWindows and ToolWindows, but I don't see an event I can use to capture the mouse on resize start and release the mouse on resize end.
How can I capture (and later release) the mouse when resizing a floating DocumentWindow or ToolWindow?