Privileged Wayland Clients

How do privileged clients in Wayland work exactly? Well, it's complicated.