Create a new panel and associate it with window
$window
This function is currently not documented; only its argument list is available.
window