We associate the stationary harmonic oscillator with time-dependent systems exhibiting non-Hermiticity by means of point transformations. The new systems are exactly solvable, with all-real spectrum, and transit to the Hermitian configuration for the appropriate values of the involved parameters. We provide a concrete generalization of the Swanson oscillator that includes the Caldirola-Kanai model as a particular case. Explicit solutions are given in both, the classical and quantum pictures.