Unify WindowBuilder and HeadlessRendererBuilder for easier implementatio...

...ns