You are missing common sense.
Apple Macintosh is but a brand of Personal Computers.
And even if there was any hardware of software differences (there are none, bits and bytes and even CPU and GPU commands are the same), there’s nothing to stop one from being compatible with another.
Look, I speak Russian and I live in South Korea, yet it didn’t stop me from using English language.
You should stop listening to all these myths and learn a thing or two about computer science.