Randomly tabbed into windows

This error have been present for quite some time now. You sit there casually playing the game, some times it happens before cs spawn, and at times it happens while laning.., then out of no where you get tabbed out of the game into windows. Does anyone have any idea why this happens, or is there a work-around to stop it from happening?
Report as:
Offensive Spam Harassment Incorrect Board