My suggestion, rather than ALT-Q + ALT-F4, is enable the "Show Queries in active" option. This won't open a new window until you tell it too.

I use the single message window option. Which unfortunately isn't a query window, nor any other that mIRC recognizes. You can't close it with /close... nor echo to it specifically (or if you can I've forgotten how).