Jackelope's answer is filled with wisdom. Be careful - the balcony is two floors up!
It's a very religious city so I would ask before bringing.
I know some hostels and riads will get upset if you bring alcohol in to their building. I would imagine restaurants would be similar.
You can bring it and ask nicely. I am sure they will appreciate the courtesy.
Get quick answers from Kui-Zin staff and past visitors.