Switch from rebuilding to generating. Drop the encoder, feed the decoder a random code, and a VAE becomes a model that makes new outputs.
To generate, you drop the encoder entirely. The decoder alone, fed a random code, is the generative model.