I use WebDriver with Chrome Driver 2.35 with Selenium.
I have a dual monitor setup in which I run my test cases. I do run my cases headlessly most of the times but
My solution to focus being stolen has always been to just use a VM or a remote computer and attach to the process remotely to do the debugging if needed.