That's an interesting thought. So I gave it a test. I recorded notes to both the Virtual Instrument track and the MIDI external just now and played them back while taking the focus off of Sonar. Both tracks played back fine. Then I thought, "Yes, because the clock is running, the audio engine is running even if the focus isn't on Sonar." So, I stopped the clock, selected the Virtual Track, played notes, get sound, take the focus off Sonar (back to Google Chrome window) and sound stops. Then something weird happens: I kept playing notes with no sound, clicking around at other apps I had open and the Virtual Track starts sounding. "Very strange" I thought. So I bring the focus back to Sonar and then off again and the Virtual track stops. I selected the MIDI external track, get sound as expected, take the focus off Sonar, continue to get sound as expected. Then reselect virtual Piano track. Get sound. Take the focus off, the sound stops.... for a minute or so.... then comes back... And it's still playing now as I type this in a Google Chrome window.
Well, I thought I understood what I thought I understood but now I just don't know...
UPDATE: I just noticed that when the Virtual track came back on the Audio Engine button suddenly became 'not greyed out' even though Sonar was NOT the in focus window. What makes the Audio Engine turn off when Sonar is not the "Most Foreground" or In Focus application and also... what would make the Audio Engine turn back on even though the app is not in Focus? Attached is screenshot of Audio Engine ON While Sonar is not in focus.