How to hide Dock icons from another Mac?
It's called &quot;Handoff.&quot;
And Apple says:

On your Mac: Choose Apple menu  &gt; System Preferences, then click
General. Select &quot;Allow Handoff between this Mac and your iCloud
devices.&quot; On your iPhone, iPad, or iPod touch: Go to Settings &gt; General &gt; AirPlay &amp; Handoff, then turn on Handoff.