Unfortunately, adding the dragon egg to your inventory and trying to hatch it in the overworld isn't possible in the base game, and you'll need to install a mod to add that ability to Minecraft. In other words, dragon eggs can only be hatched if you're playing a modded game.