Quantum dot as spin current generator and energy harvester