Merge "Use window metrics to estimate visible display frame" into main