Problems on time-varying port-controlled Hamiltonian systems: geometric structure and dissipative realization