Miley Cyrus has revealed writing a song for the new Avatar movie helped her heal following the loss of her home in a wildfire back in 2018.