Minimal code for open window