Closing the lid has never worked for me on a Windows laptop, even the most expensiveness HP Elitebooks or Dell’a Latitude Pro or whatever. On my MacBook Air, it has never been a problem for 7 years.
It is one of the main reasons I moved to Apple, it is just so much more convenient not having to worry about it.
I've owned an XPS 15 and a 2015 MBP. Had this issue with sleep as well as the funky multi-monitor with distinct DPIs issues off the bat with the XPS, never had any of these problems with the MBP.