The photos show the mother bear stand on her hind legs, with her front paws pushing on the glass mere inches from where the resident was standing.
"They were concerned, obviously, with the bear trying to get into their home," Mahwah Police Lt. Scott Scherven told WPIX-TV.
Police said the incident was one of three reported bear encounters this week in Rio Vista, which borders a large wooded area.
Authorities are urging residents to keep their garbage protected and not to leave out food that could attract bear attention.
"It is their natural environment," Scherven said. "But we will monitor area."