Costume VS Head (Dynamic Heads)

Whats the difference between the Head and Costume in a dynamic head? I notice that the costume is what is displayed in the item viewer, and the head is what is seen when worn by your character. Some creators are able to change/swap the heads and costumes after publishing. How is this done?

Example of headless bypass:
image