You can't.
Gmail doesn't have a provision for the user to add any headers other than Reply-To
.
But, if you can show how to manually add a custom header, then we can show you how to automate that with a content script.
Until then, to send an X-header, you'll have to use a different email client. Configure Thunderbird, for example, to use Gmail via IMAP.