I do not remember if this is documented, but "When mouse moves to top of screen" style actually pauses the game, similar to "Pause game when shown". This is a hardcoded behavior.
So, the solution is to set it to "Normal" and script popup yourself, as Khris posted above.
So, the solution is to set it to "Normal" and script popup yourself, as Khris posted above.