Combining open string and fretted notes can be a pretty slick way to come up with licks and phrases on your instrument. The first one I heard do this on electric guitar was Danny Gatton. He did it with a banjo roll-ish approach using pick and fingers. I believe it’s known as a Tele thing but it certainly works well on any electric or acoustic guitar, as well.
There are 5 two measure phrases here in 5 different keys. They begin by ascending and then they descend landing on the root note of the key. They are meant to be played finger style or pick and fingers.
After you do some of theses you begin to get the gist of how they work and you can have fun engineering your own phrases.
Link to notation/tab PDF below- Further below is a video on this.