You can do this even with the official Microsoft SDKs (just need to have the XP targeting pack). And then there are numerous third party development tools that allow this.
Windows doesn’t need a chroot and a separate install base. You can build one binary for Longhorn, using the Windows 11 SDK, and it will run on everything from NT4 to 11 without modification.