Adding a top-level window