How can I modify the editor viewport layout configuration in C++?

I’m working on a plugin that saves and loads viewport settings. But I can’t seem to figure out how to get and set the viewport layout configuration for the active level editor viewport. I’ve been looking into the FLevelViewportLayout class but, I’m not sure how to get an instance of it from the active viewport.