The UE4 Editor utilizes the Slate UI Framework for its widgets.
They can be inspected via the Widget Reflector tool, which allows selecting a widget currently present on the editor screen and then finding and inspecting, among other aspects, its source code, like so:
- In UE4, go to - Window > Developer Tools > Widget Reflector
 
- In the Widget Reflector window, click - Pick Hit-Testable Widgetsor- Pick Painted Widget
 
- Move the mouse over any widget on the editor window and press - ESCto stop
 
- Notice that the widget and its corresponding CPP file will be highlighted in the Widget Reflector 
On a default installation of UE4, the base folder containing Slate UI widgets should be:
C:\Program Files\Epic Games\UE_4.26\Engine\Source\Runtime\Slate\
For instance, the implementation of the SBox widget can be found at:
C:\Program Files\Epic Games\UE_4.26\Engine\Source\Runtime\Slate\Private\Widgets\Layout\SBox.cpp
Aside from being utilized to build the UE4 Editor itself, the Slate UI Framework can also be utilized in games/content created with it.
This document provides an overview of the framework by its creator.