Pointerlock in editor

This is both my editor setup, and game perspective, I want to be able to pan the camera into the dark, and I want the mouse to lock and disappear. I am not setting anything up yet. I can’t create objects with the scripts, and I am not sure how to import addons(Pointerlock), if anyone has any Idea to do this, please let me know.