Version: 2019.2
public bool focused ;

Description

This value is true only when the TreeView has keyboard focus and the TreeView's window has focus.