Enter this into launch options under prefrences of DOTA2.
-windowed -fullscreen -noborder -novid -console
This makes the game a borderless fullscreen window that you can just scroll your mouse off to the side and interact with other windows. It also enables the developer console button ~ and allows you to input quick commands like quit
Here is an image of where to input the options.