Windows at runtime can be created by an EffectOpenWindow or programmatically.
EffectOpenWindow
When opening a window via EffectOpenWindow, it has the additional functionality that if the effect is executed by an AbilityInteractable, the window is closed when the unit that opened it leaves the interaction range.
Also see the tooltips in the EffectOpenWindow Editor:
Programmatically
Call the TbeWindowManager.Instance.OpenWindow method to open a window.