openDevTools
Opens the DevTools.
When contents is a <webview> tag, the mode would be detach by default, explicitly passing an empty mode can force using last used dock state.
On Windows, if Window Control Overlay is enabled, DevTools will be opened with mode: 'detach'.