Calculates a new size that fits inside the maximums while keeping the original aspect ratio.
See Implementation
Added March 18, 2021 (dub v9.4)
Calculates a new size that fits inside the maximums while keeping the original aspect ratio.