protected void CreateFloatPanel(IdePanel panel, Point? location = null, Size? size = null)
{
var floatPanel = new FloatPanel(this);
floatPanel.SuspendLayout();
floatPanel.SetChildPanel(panel);
floatPanel.Show(_form);
if (location.HasValue) floatPanel.Location = location.Value;
if (size.HasValue) floatPanel.Size = size.Value;
floatPanel.ResumeLayout();
}