To achieve this, there are some settings you need to configure on Windows 10. You can actually close the lid of your laptop but still be able to use it with an external monitor.
It’s not necessary to have your laptop or notebook computer screen stay on if you only want to use the secondary external monitor. However, without proper settings, your laptop will go into sleep mode, hibernate or even shut down when you try to close the lid or attempt to switch off its screen. There are times when we only want to run the laptop on an external monitor without laptop screen staying on (or with lid closed).