Devtools can actually be detected to a certain extent - https://github.com/sindresorhus/devtools-detect
This annoys me every time because I use Tree Style Tab, and a website tries to detect DevTools. See Samy Kamkar's website [0].
[0]: https://samy.pl/