Given an input size, get a valid size that is the maximum that would fit inside a inoutWidth x inoutHeight, but smaller. Prefer validity if no smaller size is available.
See Implementation
Given an input size, get a valid size that is the maximum that would fit inside a inoutWidth x inoutHeight, but smaller. Prefer validity if no smaller size is available.