This version of Unity is unsupported.

Overlay.isInToolbar

public bool isInToolbar;

Description

Returns true if overlay is docked in a toolbar.