Extracting generic window for shared behavior (menu bar)