That's a dope trick. I can only wish there was a hack as easy as this to turn my iPhone into my Mac Mini's camera/microphone.
I've been looking for something that does this for a while now, WFH on the Mac Mini without a camera or mic is just dreadful :(