If you just respawned, then you have a character already. You cannot spawn at a HQ or homeworld unless you have gone through the character creation process already.
If you mean recreate your character again, you will have to die either through getting someone to arrest and execute you (the best option) or fly a ship into a sun or blackhole. THen you will have to wait the 3 week recreate period before making a new character and respawning.
Well if you are just trapped behind a door, there is no automatic feature to allow you to drop your character like there is if you are arrested. You would need to make a support ticket (Contact Support link at the bottom right) with a request to drop your character.