How to add custom widget in 3d slicer? just like 2D Slice Widget、3D View Widget、Plot Widget、Table Widget

How to add custom widget in 3d slicer? just like 2D Slice Widget、3D View Widget、Plot Widget、Table Widget