Merge "Align non-UI context behavior in getCurrentWindowLayoutInfo." into main