My Dell XPS 9360 works properly but when I close the lid for a while (around 15-20 mins) and open it again, it gets stuck on the black screen with the Dell logo. Windows does not start. I need to hold the power button for the laptop to turn off and then turn on again, but obviously every app or file I had open gets closed.
You have to change Power Options, Additional Settings and change the Sleep settings. Hibernation is automatic when the computer Sleeps longer than the time that is set. That requires a brief press of the power button to wake it. It looks like it is rebooting and takes a little longer but all open windows reappear. You can change when it hibernates and even disable it and Hybrid Sleep. But it sounds like Hibernation would be a good setting for you. It saves battery use. Also check What to do when you close the lid.