Adds actor to the window and sets it as the primary child.
actor
When the stage managed in the window changes size, the child will be resized to match it.
A Window
A Actor