To replace a background, you can select a video or an image from the Media/Videos/Images section, then drag it to the edge of the canvas to replace the template background.
To replace a video or an image layer (PIP), you can click the Replace button on the top of the canvas to select or upload another image/video from Media to replace the current one.
Drag and drop also works.