How to disable auto-pause in Secret of Monkey Island: SE?
I'm not familiar with how message passing works in Windows, but there may be a way to prevent loss-of-focus messages from reaching the game with an external program.
If you need assistance with writing such a program, remember there's always StackOverflow!