This doesn't sound like a very good economic decision. Trying to sell a bike that doesn't run will probably result in you taking whatever the dealer will give you which we all know is the absolute minimum. Having a motor rebuilt, either by the dealer or an independent, and then selling, will probably net you a lot more cash. Also, rebuilding the motor is a lot cheaper than replacing the bike.
Just my $.02 
That was almost exactly my first thought also Greg. Almost to the word. Then I wondered.
KBB (as good a reference as any I guess) currently shows a 2015 CVO Street Glide at average trade in of just under $12k and average owner sell price of just under $16k.
Just a wild assed guess but could probably sell a bike with a bad engine on the open market for $11-12k. Even if that's high maybe $10k. I know if I was in the market for a good project, especially if I was thinking I'd be doing engine work anyway, I'd be tempted around there.
Then have to consider what's the dealer going to charge to do a thorough job rebuilding the engine. Top and bottom, cleaning the pan, etc. It may not work out to be that much of a difference selling as is and you wouldn't have the upfront money spent of fixing the engine.
Plus, if you fix the engine and get the bike home you might have the new and until then unforeseen problem of deciding to keep it after having promised the wife/gf that that g*&%)&(ed money pit would be gone.