This version of Unity is unsupported.

TreeView.RowGUIArgs.isRenaming

public bool isRenaming;

Description

This value is true when the ::item is currently being renamed.

By default the item's displayName is not rendered when the rename overlay is showing by using an empty string instead of item.displayName.