If you say to someone 'what do you want?', you are asking them in a rather rude or angry way why they have come to the place where you are or why they want to speak to you.
'What do you want!' she whispered savagely. 'Get out.'.
'Bernie's been on the 'phone.'—'What does he want?'