I had a mama bear ask me to babysit her cubs once. She brought them out of the back yard (which is is a forest) and onto my deck, we were sitting in front of the french doors in the back, so she brought them right outside the door. One was an infant, its eyes weren't even opened yet. She looked me in the eye, then left them there, and went around the front to eat some garbage. I barely moved, I was like...uh... hey guys, please stay there! I sure as fuckam not gonna chase after you! Then she came back around after ~5 minutes, picked her kids up, looked me in the eye, nodded once, and walked off.
We'd had a lot of positive interactions before this, so she knew me, and apparently trusted me.
I've been surprised by bears 5 feet from me when I was walking up the driveway at night, they were eating my garbage. We looked at each other, he realized I was cool, and kept eating, and I walk by.
Where I live, you get used to the bears.