Determining if the Photoshop application is in focus from the UXP script

Usually forum search is a good start to check if question was asked before and it seems it was, but looks like no way to determine yet. Unless it was silently added to the events