Assign the passed LayoutParams to the passed View and add the view to the window.
Throws {@link android.view.WindowManager.BadTokenException} for certain programming
errors, such as adding a second view to a window without removing the first view.
Throws {@link android.view.WindowManager.InvalidDisplayException} if the window is on a
secondary {@link Display} and the specified display can't be found
(see {@link android.app.Presentation}).