DPI scaling was applied twice. Added an API comment to make this more clear for the caller of the function. This is exactly the changes to main committed in47bbf3fcae, which is a correction to1f88645728. Pull Request: https://projects.blender.org/blender/blender/pulls/135411