At one point, before the rangers got serious about the bear problem, Yosemite bears would -look- in vehicle windows for goodies and smash the window if they spotted some. They were PhD Bears. They liked apricot face creme too.
The current generation may not be that knowledgeable. Bear sensory capabilities are far beyond anything we can imagine, they can smell what's inside a sealed can for example, and they can bite thru a cast iron skillet. Saw that on a National Geographic show where the bears chased the rangers into the bear trap and them ransacked the camp at their leisure, including biting holes in the cast iron pan used to cook bacon.