Recommended method for checking if TouchDesigner is focused application?

What is the recommended method for checking if TouchDesigner is the focused application in Windows 10?

Turns out the simplest way to do this is with the Perform Window Focus channel of the perform CHOP (thank you archo-p).