private Rect DoTitle(Rect rect) { if (Title.NullOrEmpty()) { return(rect); } var header = new Listing_StandardPlus(); header.Begin(rect); header.LabelMedium(Title); header.GapLine(); header.End(); var contentRect = rect; contentRect.y += header.CurHeight; contentRect.height -= header.CurHeight; if (doCloseButton) { contentRect.height -= 55f; } return(contentRect); }