Wpf: Fix context menus and other mouse capture issues when showing a dialog/window, etc. Fixes #82