Add API to get whether the devtools is opened.
Implement IsDevToolsOpened for Linux.