implement window as root view