There were a couple of ladies very similar in my Mum's Care Home - all they wanted was to be spoken to, and taken notice of. Its a difficult situation, as obviously the care staff (if there are an adequate number of them) cannot sit solely with one resident. Though that said, if this is a regular occurrence, then they should have some activity in place to occupy her, NOT shut her in her bedroom to cry.
I am guessing, your neighbour is witnessing this, or has the care staff told of about what is happening ? It is up to the Care Home to come up with a plan of action, and shame on them if they can't.