An abbreviation of the expression: Oh my fucking God what the Hell are you doing? Usually used with sudden shock or surprise.
Example 1:
Friend: *Starts wambleing all over the table*
Me: OMFGWTHAYD?!
Example 2:
Me: *Yeets a fetus and commits self deletus*
Friend: OMFGWTHAYD?!