Reimplementing windows.create
Finished feature 58421874/windows-create.