By design, the UE4Editor slows down its framerate when it loses the focus. To disable this feature, go to the Menu: Edit Editor Preferences and select General - Miscellaneous. On the Performance section, uncheck the option Use Less CPU when in Background.