To be fair, most games fight for your screen like described, it might just be a thing with how Windows works.
If you want the window to actually stay minimized, maybe try pressing ESC and then use the minimize button on top right.
This is a really odd button in general, most games don't have this sort of thing, but it works!