The other way around, if you are in a terminal, use the command open[0] to open the current folder in Finder, or a file in the corresponding application.
Create blank text file(s) of the type you want within that folder. For example, I have a blank.txt which opens in TextMate, a blank.rb which opens in TextMate, and a blank.rtf which opens in TextEdit.
Lock the folder (by selecting it, Cmd-I, check "Locked").
Put the folder in your Dock.
Hey presto. You can now create a blank text file anywhere simply by dragging it out of this folder in the Dock. Because the folder is locked, you won't delete the original - macOS will make a copy for you, every time. Just rename it before opening and you're done.
One camp, full of very able computer users, responds immediately with techniques and suggestions for how to do something, because (1) that's what they'd want to hear, and (2) they're generous with their advice.
The second camp says "Why shouldn't the UI do what my intuition clearly craves? I'm not interested in learning alternate ways to bend my mind just to do something that Apple could have provided with minimal effort."
Guy 1: I wish I could do X
Guy 2: You can do it with a little trouble by doing Y
Guy 3: Why should we have to do Y?
Sometimes Guy 3 is also Guy 1. It’s an interesting phenomenon, for sure.
The script, for whoever's curious: https://gitlab.com/jcfields/shell-scripts/-/blob/master/cdf
Back when I used Windows, I actually used the New > Text Document item discussed in the article all the time. It created an empty, 0-byte file, so I'd rename it to whatever file extension I needed. There was a folder that contained the templates for this menu so you could add or remove blank files for any type, but I only ever used the .txt file one.
So much, so much yes.
Occasionally I do right click and go for the 'New' menu to find it isn't there even though macOS has been my primary OS for about 15 years.
Take a look at this video. This guy is awesome. Check out his other Mac OS tips videos as well and you are very likely to find what you are looking for and then some.
Edit: forgot to paste the link. Here it is: https://youtu.be/HPQobUOx17o