Let $Z \to X$ be a closed immersion of schemes. Is it true that for every morphism $Z \to Y$, the pushout $X \cup_Z Y$ in the category of schemes exists? If yes, a) does it turn out to be simply sthe pushout in the category of locally ringed spaces, b) is the natural morphism $Y \to X \cup_Z Y$ a closed immersion?

In his paper "Gluing Schemes and a Scheme Without Closed Points", Karl Schwede studies such questions. In particular, he gives an affirmative answer if everything is affine (Theorem 3.4), but also for arbitrary schemes *if we also assume* that $Z \to Y$ is a closed immersion (Corollary 3.9). My intuition says that it should be also true if we drop this condition, but on the other hand the paper shows with some examples that our intuition may be wrong in the context of pushouts. I'm aware that colimits of schemes are not well-behaved in general, but in my research it would be useful to construct pushouts also when just one inclusion is a closed immersion.

As with this MO question, I think it is not sufficient just to say that some pushout does not exist just because you don't see one. I'm interested in rigorous proofs.