Bears are 10 times more intelligent than a dog. In areas where bears are habituated (by repeated success) to go after human food sources remarkable facts come out. The window in that vehicle did not have a frame around it (years ago around here Hondas were called bear magnets) and the bear has figured out all it needs to do is get its claws inside the top edge and pull. Buy a vehicle with a full frame around the glass and roll the window up tight. And keep everything out of sight, just like you do with not leaving purses, wallets, cameras visible.
Before leaving your vehicle, take a look around. You will learn a lot. I've seen people park, hop out, and walk away from their vehicle with food stuff in plain view and not see the vehicle broken into right beside them.
Most times we are safe. Just don't ask to be the victim.
For full disclosure I should add I watched a small bear open a Toyota pickup with a full frame, pulled the window and frame horizontal with the ground and then climbed up and sat on the window and frame and emptied the cooler on the passenger seat.
This is why we should all be outraged when we see people not reading the signs and following the precautions. A fed bear is a dead bear.