How to create synthetic RAW image?

That means the data is already demosaiced or is not detected as raw data.