Merge "Improve testability for WindowLayoutComponentImpl." into main