If someone's doing something bad or that will have a really bad influence on me, say, a brother just opens the windows wide on a windy winter day while I'm having a fever, and I want him to explain himself. Instead of asking,
What the hell are you doing?
Is it natural to ask,
What do you think you are doing?