Performing operations based on window size in terms of pixel units has a high chance of resulting in unwanted behavior for macOS, due to HiDPI displays. This commit adds an API warning suggesting against usage of the raw `sizex` and `sizey` values. Related to #141982 Pull Request: https://projects.blender.org/blender/blender/pulls/142274