1. A method comprising: obtaining, using a processor of an electronic device, a handle for a first graphical window, the first graphical window being based on an object-oriented programming language, the handle being obtained using methods native to the object-oriented programming language; generating a component object model (COM) component as an invisible component, the generating comprising: using a parent window handle for the COM component set to NULL; and replacing the parent window handle for the COM component with the obtained handle, the replacing comprising: causing the COM component to be hosted and displayed in the first graphical window where: the COM component is hosted by an operating system window, and the replacing is performed using the processor.