You might try using this
https://github.com/Codeusa/Borderless-Gaming which gets rid of the window borders and fixes this issue for me. The downside is that it makes the mouse slightly off so things like resizing the chat window becomes a pain.
The alternative is either playing in fullscreen (where alt-tab is broken) or setting up the window so that it's smaller than your screen.