If you give the player a hero unit at the start via the editor (not creating a new hero type, just existing), the hero is usable but it not listed on the hero screen so you cannot give/change their equipment.
I assume the scripts that add it to the hero screen only activates when you hire them or when they are added via perk.