Here is how it would work in real life:
The laptop would come with a study mode button.
You would push it and turn off distractions.
Then 5 minutes later you would disable it just to send a chat.
Then since it was off, you'd just quickly check TikTok.
Then while you're at it, it just a quick break, you'd pop over to Twitch.
3 hours later...
If you can't teach yourself restraint, a button won't help.