Notes on relatively harmonic immersions