track top-level window creation