Open two folders in the same Finder window

It's not clear from the built-in options for using tabbed windows how to get one Finder window with two tabs, but user @Zabobon described the necessary settings and showed an example macro for this a couple months ago: