You may withdraw money from Upwork only to an account with your name as the account owner. The name needs to be the same name as your Upwork profile name, which needs to be your real name.
AFTER you withdraw money to your own PayPal account, then you may indeed send money from it to your friend's account.
Someone gave this solution, ''You can withdraw the money to your friend's paypal only if his paypal account is registered with your Upwork account's email! ''
Is this right?