Bounding Volume scaling depending on distance

Hi, I have noticed that native Apple applications scale in size depending on how far they are from the user - if you have them next to you, they’re small enough to fit on your desk, and when you push them away, they scale to the size of a wall.

Is there any functionality that would allow us to scale our applications in the same way? Some kind of scale-over-distance function, or even distance-from-camera-to-volume value maybe?