When having a floating document which is in focus and clicking on a menu item in the main window (or any other control not in a document or acnhorable) the focus is not set correctly.
Steps to reproduce:
- Run MVVMTestApp
- Open two documents
- Float one of them
- Click on the "Tools" menu, and it opens correctly.
- Now, click inside the docked document (focusing its TextBox)
- Click on the floating document
- Click on the "Tools" menu, and it does not open instead focus is set to the TextBox inside the docked document.