Add window boilerplate in app_delegate