Detaches the underlying Component from the ComponentContainer it is attached to and returns the Component.