Go to Project Properties and set Pause on unfocus to NO. Have to help.
As far as I know this only works in preview..
When unfocused the game is always suspended..
There are some third party plugins like rex time away, that measure the time between unfocused and refocused..
Because there are no user inputted events in that time it should be possible to adjust everything based on the time passed..