The best way to stop distraction while working on computer is make sure you can make the window full screen and turn off any notifications. In Mac there is full screen option built in by which any app can be made to full screen which even hides the dock. You can do the same in windows by auto hiding the Task bar and then make maximize or make app full screen if that option is available.
Full screen mode helps in focusing on only app which you are currently working on and removes any distractions. This also force you to do one job at a time which maximizes your output. Try out and let me know your experience. I am using this tactic for extreme concentration needs.