One solution:

Silence the phone, set your IM to "busy," and close your email application, then start working on something for 30 minutes.

I suggest this because I read all about how good that was to do, and predictably, didn't follow it at all. After spending years finding myself unable to work for a few hours straight, out of desperation I tried it, and surprise surprise it worked!