I disagree, there is absolutely no easy way to do it on Windows. You can install a third party program that emulates the compose key but on macos it "just works". And I think that makes a difference for 95% of users
1. Install and configure this extra tool, which also by default enables a ton of other things you may not want, and may as well be a third-party tool even though it's technically built by Microsoft
2. Do a Google search and copy-paste (!)
3. Use a keyboard shortcut to bring up a symbol picker, then click on the tab containing the en and em dashes, then click to type them in
I mean, come on.
Released back in 2019 for Windows 10.