Have you tried Stage Manager mode? It kinda does what you want, but with the windows on the side rather than the bottom.
It will get out of the way on smaller screens, though. As soon as a window gets close to the previews, they get out of the way, unlike the dock.