Identify the main Brackets window the right way so that we can dispatch "close window" message to the correct windows.