A simple window demo is ready, but it dones't work