Remove un used argument
Add layers when creating a viewport from a serialized object