Our dogs have never done that but our cats did - twice in one day.
Our cat Daffy used to climb clear to the top to peek around but couldn’t get down - had to rescue her.