useWindowDimensions automatically updates all of its values when screen size or font scale changes.
Example
Properties
fontScale
height
scale
1which indicates that one point equals one pixel (usually PPI/DPI of 96, 76 on some platforms).2or3which indicates a Retina or high DPI display.

