WB.Resources.Document.new

You're seeing just the function new, go back to WB.Resources.Document module for more information.
Link to this function

new(path, root, templates)