How to get physical resolution of a dpi-scaled OpenGL component?

I am making screen-space effects, and need to create OpenGL FrameBuffers that has same physical pixel size of an OpenGLComponent. As DPI scaling could be non-integral (such as 1.25), how can I get correct physical pixel size?