Random window id will be generated if no id is supplied to appendWindow.