I think:
Window:Close() --To force the player to close the window. Window:SetSlot() -- to set a slot to another item Window:GetNumSlots() -- returns the amount of slots. maybe it can return 2 values. the first is the amount of rows and the second is the amount of slots per row. Window:GetSlot() -- returns the item type in the given slot.