dock-apps-builder: improve IsNormalWindow