This private method will be used in later commits. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3821>