If you only care about an app window which has only the chrome:
if (evt.detail instanceof AppWindow && evt.detail.config.chrome)