I have seen both forms being used in written English and apparently both with the same meaning, like in the sentences below:
I know you have been extremely busy, but just imagine how great it would be if we could spend an entire weekend together.
I know you have been extremely busy, but just imagine how great would it be if we could spend an entire weekend together.
I'm confused. Wouldn't the use of how great would it be turn the phrase into a question?