how to determine whether the unity scene is focused

when running other application,I’d like to stop the unity, while how to get the state that the other application is focused,and not unity?

nobody?