Yes, a sample virtual disk code was in Windows Developer Kit for many years.
Moreover, there was a vdisk.sys driver in MS-DOS, and I've used it in DOS times. But unfortunately, there is no RAM disks general usefulness now, especially after M.2 SSDs appearing.
Your point about there being "no RAM disks general usefulness now, especially after M.2 SSDs appearing." is not quite accurate though.
With SSD's being so much faster the speed benefits may have been reduced greatly, But if a situation exists where a large number of files is created, edited and deleted then this process will cause a SSD's lifespan to be reduced immensely. SSDs will not last for as long as a good old HDD. So to be honest using a RAM drive for temp files would actually be more benificial to a moden systems durability that it ever was.
Im actually surprised that MS isnt promoting this as a use for it own windows temp files. I would also think that it would help with heat production as a SSD being written to a lot would generate more heat that a ram chip.