Download foobar2000. Go to Preferences -> Components -> "Install..." and install the Dolby Plugin.
Then get your "dolbyhph.dll". Unfortunately you need to find it on the internet, as it is technically copyrighted and distribution of that file is probably not allowed. SHA1 for dolbyhph.dll v1.20.0.276 is 819FC1EE87B15996B89328061693F4D37FD7DB39
Then go to Preferences -> Playback -> DSP Manager. Add "Convert stereo to 4 channels" (sounds better and a little closer to the original imo) and "Dolby Headphone" to your active DSPs. Click on the 3 dots next to "Dolby Headphone" to open its configuration. Select your "dolbyhph.dll", Room model "DH2", lower amplification to ~70% (avoids clipping), no dynamic compression.
Apply, and then listen to any stereo song you want. Enjoy! Also try to experiment the DSPs (only Dolby, 4channels+Dolby, Upmix5.1+Dolby, ...) - they change live while you play a song.