Busy Toddler has alot of great recommendations to encourage independent play:
https://busytoddler.com/independent-play/
But it takes practice. I set-up sensory bins or arts and crafts near me. When mine were toddlers we lived in an apartment so they couldn't really be far anyway. Things like putting pom poms in a bottle, dot markers. gluestick and small pieces of paper, a bin with dried pasta and measuring cups, etc. all kept my kid's attention long enough for me to do fold laundry or do dishes. Over time they have gotten much better at it and can sometimes play for hours on their own (or with each other because I have two).