Close menu when window is unfocused
This of course means we need to do all the plumbing for delivering unfocus event to UI controls.