title: C# Monogame - How to stop game loop while the game window is minimized
body: <p>I have a fullscreen Windows game that I'm working on. And today I saw an indie game (made in XNA) have the following behavior: when it is the focused window it will <code>Update()</code> and <code>Draw()</code> but when it gets minimized it stops both of these and waits for the user to make it the top window again. Essentially I'm looking for a way to kind of "pause" the entire game loop while the game window is minimized and "resume" it <strong>from where it stopped</strong> when the game gets focused again. This would mean that if I minimize my game and open my browser, for instance, when I left click, the game GUI logic wouldn't register that and open a window or whatever. Thanks in advance!</p>