My beagle has been thinking that she can come into my room any time of day or night. When she was younger she would come in to my room just to look out the windows and bark "look look a cat! oh look look a person!! ooooff oooofffff!!!" and that I did put a stop to. Now she thinks she can just come in when she is not wanted (trying to sleep!). When I leave the house with out her I have to put up a barrier (sliding door). because if I am not here to enforce the rules she breaks them by going to a window and barking "come back!!!" What should I do to stop this????