For example, do you think CSAM should be legal as long as those in the material are fictional?
Yes. As long as the image is not created through raping somebody, it's morally okay, since no real person was violated.
And where do you draw the line?
Anything which requires violating somebody to be produced.