Your dog is just being curious and wants to see outside. Maybe you could put some boxes or containers next to the wall so the dog can climb it and have spot to lie down and watch the world go by. I have a cat and every window is an open invitation to be a busy body and watch the neighborhood. She can't get to every window, but her kitty condo is right in front of an upstairs window so she can see the birds land of the roof and watch for cats coming into HER yard without HER permission. It's really funny, she gets so upset when other cats show up. That's why she is an only child, won't tolerate another one in the house.