Sounds like a great idea, I have come across mods that place blocks off of direction sides, allow you to undo block placements and more just not in the way you've described but it sounds fairly intuitive and even better than some of the mods that do due to the direction still needing to be considered in such as way, like you would a piston I guess, this would be amazingly useful if Mojang added it.
Rollback Post to RevisionRollBack
'Niche Community Content Finder' for fun and support of creators. I look for mods that interest me or need a bit of acknowledgement or bug fix testing/reporting. I also make modpacks/maps
Creator/Maintainer of Fabric, Rift & Tesla Mod Discussion Threads/Niche Mod Youtuber.