The scenario I'm talking about is not synthesising a RAW file from scratch, but being able to freely edit it and save the result back into a RAW file that looks "original". I don't think you've made any statements that indicate that doing that would be complex.
Again, this is not about faking a RAW file from scratch, just being able to edit it in place.