This has been implemented here (big thanks to @david):
This should solve sidebar, chat and some other issues with custom header content.