Resizable & collapsible preview container in Editor

Hi,

is there some way to get these collapsible and resizable “containers” used in the inspector around 3D previews like here in a custom Editor Window?:

I have the 3D preview itself, I would like to add that title bar above that can be dragged to resize the preview or clicked to collapse it (don’t need the overlaid stats or tag button below).