Manage optional newWindowName for newWindow.