Specifying a game object by height or width or length instead of localScale

Is it possible to specify the dimensions of a gameObject by an absolute metric coordinate, such as 50m or something like that, instead of localScale (relative)?

Transform.lossyScale seems to be the only way to connect localScale to global coordinates - caveat is that if you rotate your object, this will be inaccurate… maybe some projection via EulerAngles to get the revised components