In TweakUI, there's a focus option that should prevent applications stealing focus, but I don't know if this will work. I tried it for myself quickly, and couldn't get it to work the way I wanted to.
Click here for Windows XP Powertoys
You might have to Google for non-XP systems.