I don’t know the particular answer you’re looking for, but you might appreciate this asset ( I think it should be part of the editor )
https://www.unrealengine.com/marketplace/en-US/product/zen-mode
It works in all windows, so main viewport and blueprint editor, material etc.