Resonant harmonic generation and collective spin rotations in electrically driven quantum dots