From what I understand, that requires using a bootloader like OpenCore to do the installation since those aren't Macs, and they use custom touch drivers not built into current versions of macOS.
Also, for what it's worth, you can't install macOS onto modern Surface devices that contain a Snapdragon X Elite processor or a newer Intel Ultra chip, instead of an Intel chip. And when you're going the Hackintosh route, you have to be prepared for various caveats in how well things work. For instance, pinch-to-zoom gestures, smooth inertia scrolling, and multi-finger gestures work, but some say it feels clunky because macOS's buttons and menus are currently geometrically designed for a precise mouse pointer, not a human finger. Though obviously as we've been hearing, Apple is gradually implementing a touch interface, so all of that might change.
Also, versions of macOS starting next year can't be installed on non-Intel CPUs even with a bootloader, so that window is closing.