Wave function for dissipative harmonically confined electrons in a time-dependent electric field