KDEConnect (GSConnect or another implementation) or scrcpy + a service like Tailscale or ZeroTier is going to be your best option really.
Apple has a lot of invasive back-end "magic" going on to allow Continuity and the seamless sharing between iOS and MacOS.