Implements ShellIsActive condition without SWTBot