Init the API with the window to show doorhanger prompts.