The first approach is a \newenvironment
that mix mdframed
and tabular
, but the same with tcolorbox
instead of mdframed
seem easier because this package have a beamer
skin option. The first case is a fixed two columns but in the second the columns format is free (the second parameter of the new environment). You can compare both approaches in this MWE:

\documentclass{article}
\usepackage[framemethod=TikZ]{mdframed}
\usetikzlibrary{shadows}
\mdfdefinestyle{MyFrame}{%
linecolor=gray!50,
outerlinewidth=0.01em,
skipabove=.5\baselineskip,
skipbelow=.5\baselineskip,
roundcorner=1em, shadow=true,
leftmargin=.25\textwidth,
rightmargin=.25\textwidth,
innertopmargin=1ex,
innerbottommargin=.5\baselineskip,
innerrightmargin=1em,
innerleftmargin=1em,
backgroundcolor=yellow!05!white,
frametitlerule=true,
frametitlerulecolor=blue!40!,
frametitlebackgroundcolor=blue,
frametitlerulewidth=0.05em}
\newenvironment{mdbeamer}[1]
{ \begin{mdframed}[style=MyFrame,
frametitle={\hfill\color{white}#1\hfill}]
\centering
\begin{tabular}{cc}
}
{ \end{tabular}
\end{mdframed}
}
\usepackage{tcolorbox}
\tcbuselibrary{skins}
\tcbset{colback=yellow!05!white,colframe=blue!95,
width=.5\textwidth,before=\hfill,after=\hfill}
\newenvironment{skinbeamer}[2]
{
\begin{tcolorbox}[skin=beamer, adjusted title= \centering #1]
\centering
\begin{tabular}{#2}
}
{ \end{tabular}
\end{tcolorbox}
}
\begin{document}
\begin{mdbeamer}{My mdframed table}
A & B \\
C & D \\
\end{mdbeamer}
\begin{skinbeamer}{My tcolorbox table}{|c|c|}
\hline
A & B \\
\hline
C & D \\
\hline
\end{skinbeamer}
\end{document}
tabular
-like environment.