Merge "Support windows being created and set to visible in the same frame in WM" into main