1 inch = 163 dp
For example, iPhone 11 Pro Max.
GetDeviceLayoutValues.Width = 414
GetDeviceLayoutValues.Height = 896
GetDeviceLayoutValues.NonnormalizedScale = 3
Means ; width in pixels 414 * 3 = 1242, height = 896 * 3 = 2,688
Physical width of screen in inches: 414 / 163, in mm - 25.4 (mm per inch) * 414 / 163 = 64.5
Physical height of screen in inches: 414 / 163, in mm - 25.4 * 414 / 163 = 139.6
Total size of device according specification - height 144 mm, width 71,4 . Borders are enough thin (2-3 mm from each side), so our calculations are correct.