Mad drama. Mad drama.
So either one of two things you make a decision about, either the sex/fun moments of the relationship are awesome and you put up with the bad as a fun casual relationship (obviously this isn't someone you want to be long term or god forbid married with) OR you end this right now if you don't like the drama. It's pretty much too late now to change anything.
Unless guys secretly like a little drama, I don't understand why so many get into a situation like this in the first place. Girls that give you drama like this you should not get into a relationship with. Either keep them as FWBs/casual relationship where you only see them occasionally (casual relationship where she sees you 1x/wk or less she is never going to give you drama) OR don't tolerate it.
And by "don't tolerate it" I don't mean tell her what to do. That's never going to work, is bossy, and is just adding to the drama. At it's core, drama is a cry for attention, or a response to your tone depending on which came first. If she comes out you with fire and brimstone or any form of drama (passive aggressive, yelling, silent treatment, withholding sex, etc.) that is a cry for attention and nothing more. If what she cared about was just the issue at hand she would calmy discuss it with you. The yelling or any other form of drama is for attention, either just wanting attention in general OR TO MAKE DAMN SURE YOU'RE LISTENING TO WHATEVER SHE SAYS. Either way, yelling at someone or drama is not, in my mind, an acceptable way to treat another human being....EVEN if they royally fucked up. You can still express gravity and intensity in a calm, collected way.
Drama is a cry for attention, giving her that attention, whether it's yelling back, arguing, hitting her (I hope not), etc. are all forms of attention. That's what she wants out of her drama. Every time you engage in those behaviors you reinforce the idea of: I give this dude drama -> I get attention. She is now more likely to repeat it. That's probably not what you want. Let's face it, how many couples have we seen or known where the classic pattern is that the girl comes at the guy with "drama" and the guy responds with anger and "telling her what to do"? The female drama response sucks, its not a nice way to treat someone, and so does the guy response.
What is the correct answer? Take away the attention. Stay calm and tranquil, and tell her politely, yet firmly, that you will not tolerate being treated in an unkind manner. Say nothing else, and calmy walk out, get in your car and leave. Do not say ANYTHING. Attention is the name of the game, and any attention reinforces the drama. Just leave. Don't communicate with her for at least 24 hours, but depending on the severity of what she did this could be much longer (could be a week or more if she were to explode at me on say....a trip where we were almost stuck together). No texts, no calls, nothing. Then resume contact as normal.
Yes, this will feel wierd to you. Yes this will scare you. No, you will not lose here if she has any interest in you at all. Women aren't stupid, she will know exactly what you did and why. She will not like how it feels, and you'll have avoided the situation, remained calm, kept both of your emotional health in a good spot, and set a clear tone that you aren't okay with her being disrespectful to you, and that you're not going to be disrespectful back to her.
Now....some girls are just drama queens and will hit you with drama no matter what, even after 2-3x of doing this. If that is the case....either treat them as girls you just have fun with, or accept that you like drama and are in for some drama times!