If you're signed into Teams but playing a game or watching a movie, it could probably be challenged in court whether you're performing a service for your employer.
Ever read "Thinking fast and slow"? You can more effectively problem-solve when not actively trying to solve them, so it seems completely reasonable to me to distract your conscious mind while pondering a problem.