Pressing the windows key leaves the game window

It’s currently not possible to use the windows game bar (accessed by pressing win + g) in any WindowsDX Monogame (3.7.1) game.

When pressing the windows key, the game window gets minimized (or losses focus if in windowed mode). I tested with other games and this is not usual behavior.

Is there any way to fix this?