I would have it written somewhere along these lines. Goldust becomes increasingly frustrated over the weeks. Cody tries to figure out why he is acting so differently. Eventually he reveals that for the first time in his life he was finally happy. His health and lifestyle was the best it's been and he finally felt comfortable in his career after having to be "just Dusty's son", the sexually questionable perver, the stupid gimmicks in other promotions. He finally had what he had dreamed up, but now that dream is shattered because his contract will expire soon now that he no longer carries the Tag Title. Eventually you see segments of him in the back drinking or coming to the ring drunk and going back to the old ways.
Eventually the authority comes out and offers Goldust a "Golden Opportunity". If Goldust defeats his brother at Wrestlemania then he can have a shot at any singles title he wants at any time(MITB style), including the one that evaded him his entire career. The only catch is, that if Cody Rhodes loses, he will be fired. He has until the end of the night to think about it and sign the contract. The whole night you see Goldust in the back thinking. The end up the night, they have the table set up with the contract. Triple H and Stephanie are in the ring and call out both of the brothers. They come out and blah blah blah. Cody tells him that he is willing to do it. Goldust says that he can't end his brother's career and that he already had his time in the business. Goldust rips up the contract and tells Triple H to shove it. Triple H and Stephanie tell Goldust they will allow him 5 minutes in the ring to make his farewell to the fans since he will never step foot in a WWE ring again. He has a nice little farewell speech like Mark Henry, tears in his eyes, he hugs Cody. Then BAM! He attacks Cody. Beat's him down with a chair. Even takes him in the corner for Shattered Dreams. Triple H pulls another contract out of his jacket and smiles as Goldust signs it right on top of Cody. They have some heated exchanges of words back and forth. Goldust constantly costs matches for Cody meanwhile Goldust always has the Shield at ringside for protection during his matches. Dusty gets involved and pleads with Triple H to not tear his family apart any more. They end up making Dusty the referee so that he has to decide which son wins and goes on and which son goes home. They blame Dusty for ruining Goldusts career and forcing him into a life of alcohol abuse and divorce. He has the chance to fix it, but by doing so he will ruin the career of his other newly married son.
Eventually we get to Mania. They put on a great match and Dusty ends up turning on Cody and helps Goldust win. Goldust gets to now fight for any title he wants anytime he wants. Now you would think Goldust would go after the WWEWHC. But he doesn't. Instead you have him up to his creepy mind games and he continually stalks Big E Langston. Even havin golden glitter shower on him during matches. I think the feud would be entertaining and would bring more relevance to the IC title.
So there are a couple reasons I chose Goldust to be the heel in this scenario. I feel someone needs to be a heel to make it emotional. Most Goldust fans like hime because of nostalgia anyways so those fans will be pleased to see him at WM period. The reason why I have Cody lose is because after Mania we will have a lot of focus on Daniel Bryan(who probably wins the belt), Bray Wyatt(after facing Cena), Sting(assuming reports are true), the Wyatt Family, The Shield Break up, pushing Roman Reigns, and pushing Big E. I think that all of these things would easily overshadow a Cody Rhodes single push and that he is currently over because of his brother. So we get rid of him and bring him back later on, either at Summer Slam or later. This way he will get a bigger pop when he either gets revenge on his brother or comes in as the hero to the big heel at the time.