It has been done by many professional shops, and it's not cheap or easy.
I've done a couple of resurrections of discarded bikes. The Honda SL350 was a street legal enduro, but not much of a road bike.
I created a scrambler-ized version of a BMW R100 also. It was heavy but it was fun...