Here is the height PlatformInfo.SafeAreaInsetTop gives for a pixel 7. The value I'm getting is 42 which is way too small.
Here is the height provided by my formula: PlatformInfo.SafeAreaInsetTop*(1080/PlatformInfo.WindowInnerWidth). PlatformInfo.WindowInnerWidth is 411. Meaning if I do 42*(1080/411) = 110 which looks to be exactly correct.
I don't really understand why its correct though and if its safe to use.