Girlfriend didn't come home last night. Thoughts?

Hey guys, so I've been dating this amazing girl for a year and two months now. We moved in together about three months ago.
Since we started dating. My girlfriend has complained about my wandering eyes on multiple occasions. I tend to stare at every girl and make eye contact and she hates it. Which is understandable.
I tried to stop it but its a stupid habit. She said its embarrassing her when we're out together but im starring. And she's smoking hot but she says when I do that, i make less attractive girls feel like theyre bettee than her.
It got so bad that she stopped wanting to go out with me. And she doesn't trust me around anyone attractive. Although I've never cheated on her or any of my exs.
Things have been going great for us and I want to marry her oneday. But two days ago we went out. And she caught me starring and i smiled at this girl in the restaurant we were at. After we left the restaurant. She walked off while i was waiting for the uber and didn't come back.
I got worried so i called her and she texted me saying. "won't be home tonight". I tried to call and text but she ignored me.
Then she comes home the next day at 12 pm and pretends like she didn't dissappear the whole night. I tried to talk to her but she snapped at me. Saying i always flirt with other girls.
Anyways. We haven't spoken much today. She's been sleeping in the spare room. I dont know how to feel or what to think.
Any thoughts? Advice?
She's 22 and I'm 25

Girlfriend didn't come home last night. Thoughts?
Post Opinion