You're likely thinking of ChalkZone (2002–2008).
Premise: Rudy Tabootie (voice: E.G. Daily) discovers a piece of "Magic Chalk" that lets him draw portals into ChalkZone—a world where everything ever drawn in chalk and erased comes to life. He adventures there with Snap (a drawing he created) and Penny.
Not to be confused with: Doug (Nicktoon, 1991) where Doug's journal drawings visualize his inner thoughts, but chalk isn't the central mechanic.