It's too risky for everyone involved. Conduct which is okay at a bar or a party has no place in an office.
That said I have made great friends at work. This should be a bonus. If you want to make friends and date do that at a bar , alumni events , concerts, etc.
If you step to a girl and ask if you can buy her a beer at a pub, the worst that happens is she'll say no. If you do it at work, you might come off as rude , seriously don't date co workers. It's easy for HR to get rid of you.
For my part I've had a gay co worker aggressively hit on me. At a bar I'd laugh this off ( or even let him buy me a drink ). At work I felt very uncomfortable. No I don't want to know I look like your husband, why is that an appropriate thing to say in the office!