A woman being held in police custody made a threat to smash a neighbour’s window, a court heard.