If you would draw a card, return a card from your graveyard to your hand instead. If you can't, you lose the game.
If a card would be put into your graveyard from anywhere, exile that card instead.
It will replace itself being sent to the graveyard, and exile itself.