Returns state closure for side panel
inspector will only be displayed if this is true.
default width of the side panel in pixel.
Returns state closure for side panel