Sam showed me how you can key in a couple write commands in the macOS terminal […] [w]hich will enable a context menu in a system web view:

Source: Inspecting Web Views in macOS - Jim Nielsens Blog

I had no idea System Preferences on macOS were driven by HTML. This is blowing my mind.